﻿//using System.Collections.Generic;
//using NUnit.Framework;

//namespace Simhopp.Common
//{
//    /// <summary>
//    /// A test class for the Round class.
//    /// </summary>
//    [TestFixture]
//    class TestRound
//    {
//        #region TEST METHOD REGION
//        [SetUp]
//        public void Init()
//        {
//        }

//        [Test]
//        public void TestAddRound()
//        {
//            Round TestR1 = new Round();

//            TestR1.RoundNumber = 4;

//            Assert.AreEqual(TestR1.RoundNumber, 4);


//            Round TestR2 = new Round(1);

//            Assert.AreEqual(TestR2.RoundNumber, 1);


//            Assert.AreNotEqual(TestR2, TestR1);            
//        }


//        [Test]
//        public void TestAddDivers()
//        {
//            //Create objects, variables and prepare them for test.
//            Round TestR1 = new Round();

//            Diver TestD1 = new Diver();

//            TestD1.Age = 4;
//            TestD1.Name = "Bob";
//            TestD1.Nationality = "Sweden";
//            TestD1.Gender = Genders.Male;


//            TestR1.AddDiver(TestD1);

//            Assert.AreEqual(TestD1.Name, "Bob");
//            Assert.AreEqual(TestD1.Age, 4);
//            Assert.AreEqual(TestD1.Nationality, "Sweden");
//            Assert.AreEqual(TestD1.Gender, Genders.Male);
//        }


//        [Test]
//        public void TestAddListOfDrivers()
//        {
//            //Create objects, variables and prepare them for test.
//            Round TestR1 = new Round();

//            Diver TestD1 = new Diver();
//            Diver TestD2 = new Diver();
//            Diver TestD3 = new Diver();
//            Diver TestD4 = new Diver();


//            TestD1.Name = "Bob Bob";
//            TestD2.Name = "Linus Linus";
//            TestD3.Name = "Pär Per";
//            TestD4.Name = "Fredrik Reinfeldt";


//            List<Diver> TestDList = new List<Diver>();

//            TestDList.Add(TestD1);
//            TestDList.Add(TestD2);
//            TestDList.Add(TestD3);
//            TestDList.Add(TestD4);

            
//            //Add the list to TestR1
//            TestR1.AddListOfDivers(TestDList);


//            //Check if all the divers are in the TestR1 divers list.
//            Assert.AreEqual(TestR1.Divers[0].Name, "Bob Bob");
//            Assert.AreEqual(TestR1.Divers[1].Name, "Linus Linus");
//            Assert.AreEqual(TestR1.Divers[2].Name, "Pär Per");
//            Assert.AreEqual(TestR1.Divers[3].Name, "Fredrik Reinfeldt");
//        }


//        [Test]
//        public void TestRemoveDiverByIndex()
//        {
//            //Create objects, variables and prepare them for test.
//            Round TestR1 = new Round();

//            Diver TestD1 = new Diver();
//            Diver TestD2 = new Diver();
//            Diver TestD3 = new Diver();
//            Diver TestD4 = new Diver();


//            TestD1.Name = "Bob Bob";
//            TestD2.Name = "Linus Linus";
//            TestD3.Name = "Pär Per";
//            TestD4.Name = "Fredrik Reinfeldt";


//            TestR1.AddDiver(TestD1);
//            TestR1.AddDiver(TestD2);
//            TestR1.AddDiver(TestD3);
//            TestR1.AddDiver(TestD4);


//            //Remove TestD1 from TestR1
//            Assert.IsTrue(TestR1.RemoveDiverFromList(TestD1));


//            //Should be false because TestD1 does not exist in TestR1 anymore.
//            Assert.IsFalse(TestR1.RemoveDiverFromList(TestD1));


//            //Remove obj. TestD2 from TestR1 by searching for the persons name.
//            Assert.IsTrue(TestR1.RemoveDiverFromList("Linus Linus"));


//            //Tries to remove a name that is not present in TestR1 list.
//            Assert.IsFalse(TestR1.RemoveDiverFromList("Hejsan Hoppsan"));


//            //Remove TestD3 from the list, leaving ony Fredrik left in the list.
//            Assert.AreEqual(TestD3.Name, TestR1.RemoveDiverFromList(0).Name);


//            Assert.IsNull(TestR1.RemoveDiverFromList(1));


//            //Remove everything in the list.
//            TestR1.ClearDivers();

//            Assert.IsEmpty(TestR1.Divers);
//        }

//        [Test]
//        public void TestAddEnumHeight()
//        {
//            Round TestR1 = new Round();



//            TestR1.height = Heights.FiveMeters;


//            System.Console.Write(TestR1.height);
//            System.Console.Write((int)TestR1.height);
//        }

//        [TearDown]
//        public void Terminate()
//        {
//        }
//        #endregion
//    }
//}
